<template>
  <div
    v-if="crud.props.searchToggle"
  >
    <el-date-picker v-model="query.year" clearable size="small" type="year" placeholder="请选择年度" value-format="yyyy" style="width: 200px;" class="filter-item" @change="crud.toQuery"></el-date-picker>
    <!--
    <el-input v-model="query.plots" clearable size="small" placeholder="请输入参评地块数" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.enterprises" clearable size="small" placeholder="请输入参评企业数" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.countA" clearable size="small" placeholder="请输入A类家数" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.percentA" clearable size="small" placeholder="请输入A类占比" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.countB" clearable size="small" placeholder="请输入B类家数" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.percentB" clearable size="small" placeholder="请输入B类占比" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.countC" clearable size="small" placeholder="请输入C类家数" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.percentC" clearable size="small" placeholder="请输入C类占比" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.countCMinus" clearable size="small" placeholder="请输入C-类家数" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.percentCMinus" clearable size="small" placeholder="请输入C-类占比" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.countD" clearable size="small" placeholder="请输入D类家数" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.percentD" clearable size="small" placeholder="请输入D类占比" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.percentD" clearable size="small" placeholder="请输入D类占比" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.taxationSf" clearable size="small" placeholder="请输入双凤亩均税收(万元)" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.taxationCity" clearable size="small" placeholder="请输入全市亩均税收(万元)" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.saleCity" clearable size="small" placeholder="请输入双凤亩均销售万元)" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.saleCity" clearable size="small" placeholder="请输入全市亩均销售(万元)" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    -->
<!--
    <el-input v-model="query.cumulativeInvestment" clearable size="small" placeholder="累计纳统投资额(万元)" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.plannedInvestment" clearable size="small" placeholder="计划投资总额(万元)" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-select
      v-model="query.stage"
      clearable
      size="small"
      placeholder="所处阶段"
      class="filter-item"
      style="width: 150px"
      @change="crud.toQuery"
    >
      <el-option
        v-for="item in stageList"
        :key="item.label"
        :label="item.label"
        :value="item.label"
      />    
    </el-select>
    <el-input v-model="query.landArea" clearable size="small" placeholder="用地面积(亩)" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-select
      v-model="query.category"
      clearable
      size="small"
      placeholder="重点项目分类"
      class="filter-item"
      style="width: 150px"
      @change="crud.toQuery"
    >
      <el-option
        v-for="item in categoryList"
        :key="item.label"
        :label="item.label"
        :value="item.label"
      />    
    </el-select>
    <el-input v-model="query.outputValue" clearable size="small" placeholder="企业产值(万元)" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.taxation" clearable size="small" placeholder="企业税收(万元)" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-select
      v-model="query.level"
      clearable
      size="small"
      placeholder="重点项目等级"
      class="filter-item"
      style="width: 150px"
      @change="crud.toQuery"
    >
      <el-option
        v-for="item in levelList"
        :key="item.label"
        :label="item.label"
        :value="item.label"
      />    
    </el-select>-->
    <rrOperation />
    
    <!-- <el-button class="filter-item" size="mini" type="primary" icon="el-icon-download" @click="exportData"  >导出</el-button> -->

  </div>
</template>

<script>
import { header } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import { landStatusList, stageList, categoryList, levelList } from '@/utils/index.js'

export default {
  components: { rrOperation },
  mixins: [header()],
  props: {
    permission: {
      type: Object,
      required: true
    }
  },
  data() {
    return {
      landStatusList,
      stageList,
      categoryList,
      levelList,
    }
  },
  created() {

  },
  // methods: {
  //   exportData() {
  //     downloadTheFile(`/business/excel/exportProject`, '重点项目信息.xlsx', this.query)
  //   }
  // }
}
</script>
